DXS SET SPRITE FRAME SIZE

Sets the height and width of the sprite frames. This command should be used only if th sprite width and height are multiples of frames width and height.
For example, in this cas, there is a sprite with a 64x64 texture cut in frames of 16x16 pixels. 64 / 16 = 4, the frame size is good :


In this second case, the sprite as the same texture, but it is cut in frames of 20x20 pixels. 64 / 20 = 3.2, the frame size is not good:


the frameset size is automtically calculated from these dates, so it is possible to use DXS GET SPRITE FRAMESET WIDTH and DXS GET SPRITE FRAMESET HEIGHT.

Syntax

DXS SET SPRITE FRAME SIZE Sprite Pointer, Frame Width, Frame Height


AdvancedSPRITES : Commands Menu